import asyncio
import logging
from aiogram import Bot
from aiogram import Dispatcher
from aiogram import types
from aiogram.enums import ParseMode

from scaner.core.config.project_config import settings
from routers import router as main_router


async def run_bot():
    logging.basicConfig(level=logging.DEBUG)
    dp = Dispatcher()
    dp.include_router(main_router)

    bot = Bot(
        token=settings.tg_bot_token,
        # parse_mode=ParseMode.HTML,
    )

    await dp.start_polling(bot)


if __name__ == "__main__":
    asyncio.run(run_bot())
